﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;

namespace CCWpf.ViewModels
{
    /// <summary>
    /// 菜单项
    /// </summary>
    public class MenuItemModel:ViewModelBase
    {
        public int MenuId { get; set; }
        public string MenuName { get; set; }

        private bool isExpand;
        /// <summary>
        /// 展开或折叠
        /// </summary>
        public bool IsExpand
        {
            get { return isExpand; }
            set { isExpand = value;OnPropertyChanged(); }
        } 
        public string MenuPic { get; set; }
        public string MenuURL { get; set; }
        public bool IsTop { get; set; }
        public ObservableCollection<MenuItemModel> SubMenuList{ get; set; } = new ObservableCollection<MenuItemModel>();

        public ICommand OpenPageCmd { get; set; }
    }
}
